package com.springmvc.api.base.dao.redis;

import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.ShardedJedis;
import redis.clients.jedis.ShardedJedisPool;

/**
 * Created by cheng.xi on 12/2/15.
 */
public class BaseRedisDao {
    @Autowired
    protected ShardedJedisPool shardedJedisPool;

    protected ShardedJedis getShardedJedis(){
        return shardedJedisPool.getResource();
    }
}
